#pragma once

#include "IControl.h"

interface IControlBars;

interface IControlBar : public IInterface
{
	DEFINE_IID(IID_ControlBar)

	event_declare(ErrorEventHandler,Error);

	virtual uint32 GetControls(ControlList& controls) const = 0;
	virtual bool ContainControl(uint32 localid) = 0;
	virtual IObject* FindControl(uint32 localid) const = 0;

	/*!for inner usage*/
	virtual void SetControlbars(IControlBars* controlbars) = 0;
};

